<?php
//echo '<pre>';
//print_r($udd);
//echo '</pre>';
?>
<div class="">
	<h1>UDD <small></small></h1>
</div>

<div class="container">
	<div class="row col-md-10 custyle">
		<table class="table table-striped custab">
			<thead>
				<a href="<?php echo base_url() . 'index.php/main/tambahudd'; ?>" class="btn btn-primary btn-xs pull-right"><b>+</b> Tambah UDD</a>
				<tr>
					<th>No</th>
					<th>UDD</th>
					<th>Telepon</th>
					<th>Lat, Long</th>
					<th class="text-center">Action</th>
				</tr>
			</thead>
			<?php foreach ($udd as $key => $u) { ?>
				
			<tr>
				<td><?php echo $key+1 ?></td>
				<td><?php echo $u['udd'] ?></td>
				<td><?php echo $u['telepon'] ?></td>
				<td><?php echo $u['lat'].', '.$u['long'] ?></td>
				<td class="text-center"><a class='btn btn-info btn-xs' href="<?php echo base_url() . 'index.php/main/editudd/'.$u['id_udd']; ?>"><span class="glyphicon glyphicon-edit"></span></a><a href="<?php echo base_url() . 'index.php/main/dohapusudd/'.$u['id_udd']; ?>" class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-remove"></span></a></td>
			</tr>
			<?php } ?>
				
			
		</table>
	</div>
</div>
